export default [
  {
    path: "dashboard",
    name: "dashboard",
    component: () => import("@/pages/adminPage/dashboard/dashboard.vue"),
  },
  {
    path: "race",
    name: "raceManage",
    component: () => import("@/pages/adminPage/raceManage/raceManage.vue"),
    children: [
      {
        path: "list",
        name: "racelist",
        component: () => import("@/pages/adminPage/raceManage/raceList.vue"),
      },
      {
        path: "create",
        name: "racecreate",
        component: () => import("@/pages/adminPage/raceManage/raceCreate.vue"),
      },
      {
        path: "list/:cid/edit",
        name: "raceedit",
        component: () => import("@/pages/adminPage/raceManage/raceCreate.vue"),
      },
      {
        path: "list/:cid/grouplist/:limit",
        name: "racegrouplist",
        component: () =>
          import("@/pages/adminPage/raceManage/raceGroupList.vue"),
      },
      {
        path: "list/:cid/problems/:type",
        name: "raceproblems",
        component: () => import("@/pages/adminPage/raceManage/raceProblem.vue"),
      },
      {
        path: "list/:cid/notice",
        name: "racenotice",
        component: () => import("@/pages/adminPage/raceManage/raceNotice.vue"),
      },
    ],
  },
  {
    path: "discuss",
    name: "discussManage",
    component: () =>
      import("@/pages/adminPage/discussManage/discussManage.vue"),
    children: [
      {
        path: "all",
        name: "discussall",
        component: () =>
          import("@/pages/adminPage/discussManage/discussAll.vue"),
      },
      {
        path: "report",
        name: "discussreport",
        component: () =>
          import("@/pages/adminPage/discussManage/discussReport.vue"),
      },
    ],
  },
  {
    path: "training",
    name: "trainingManage",
    component: () =>
      import("@/pages/adminPage/trainingManage/trainingManage.vue"),
    children: [
      {
        path: "list",
        name: "traininglist",
        component: () =>
          import("@/pages/adminPage/trainingManage/trainingList.vue"),
      },
      {
        path: "list/:tid/edit",
        name: "trainingedit",
        component: () =>
          import("@/pages/adminPage/trainingManage/trainingEdit.vue"),
      },
      {
        path: "create",
        name: "trainingcreate",
        component: () =>
          import("@/pages/adminPage/trainingManage/trainingEdit.vue"),
      },
      {
        path: "category",
        name: "trainingcategory",
        component: () =>
          import("@/pages/adminPage/trainingManage/trainingCategory.vue"),
      },
      {
        path: ":tid/problemList",
        name: "trainingProblemList",
        component: () =>
          import("@/pages/adminPage/trainingManage/trainingProblemList.vue"),
      },
      {
        path: ":tid/users",
        name: "trainingUsers",
        component: () =>
          import("@/pages/adminPage/trainingManage/trainingUsers.vue"),
      },
    ],
  },
  {
    path: "problem",
    name: "problemManage",
    component: () =>
      import("@/pages/adminPage/problemManage/problemManage.vue"),
    children: [
      {
        path: "tag",
        name: "problemtag",
        component: () =>
          import("@/pages/adminPage/problemManage/problemTag.vue"),
      },
      {
        path: "list",
        name: "problemlist",
        component: () =>
          import("@/pages/adminPage/problemManage/problemList.vue"),
      },
      {
        path: "list/:pid/edit",
        name: "problemedit",
        component: () =>
          import("@/pages/adminPage/problemManage/problemCreate.vue"),
      },
      {
        path: "create",
        name: "problemcreate",
        component: () =>
          import("@/pages/adminPage/problemManage/problemCreate.vue"),
      },
    ],
  },
  {
    path: "install",
    name: "installManage",
    component: () =>
      import("@/pages/adminPage/installManage/installManage.vue"),
    children: [
      {
        path: "proclamation",
        name: "installproclamation",
        component: () =>
          import("@/pages/adminPage/installManage/installProclamation.vue"),
      },
      {
        path: "notice",
        name: "installnotice",
        component: () =>
          import("@/pages/adminPage/installManage/installNotice.vue"),
      },
    ],
  },
  {
    path: "user",
    name: "user",
    component: () => import("@/pages/adminPage/userManage/userList.vue"),
  },
  {
    path: "permission",
    name: "permission",
    component: () =>
      import("@/pages/adminPage/permissionManage/permissionManage.vue"),
  },
  {
    path: "setting",
    name: "setting",
    component: () => import("@/pages/adminPage/setting/setting.vue"),
  },
];
